package com.nowcoder.community.dao.elasticsearch;

import com.nowcoder.community.entity.DiscussPost;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

/**
 * @author TwfPlayer
 * @date 2023/8/10 16:40
 * @description: TODO
 */
//该注解是spring提供的针对数据访问的注解
@Repository
//该接口父接口定义了对es访问的各种方法
public interface DiscussPostRepository extends ElasticsearchRepository<DiscussPost,Integer> {

}
